Skip to content

Commit

Permalink
Worked on tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Oct 9, 2016
1 parent 1886682 commit a89a053
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -13,7 +13,7 @@ before_install:
install:
- if test `uname -s` = 'Darwin'; then export SED="/usr/local/bin/gsed"; fi
- ./synclibs.sh && ./autogen.sh
- mkdir -p tests/input/1 && curl -L -o tests/input/1/SysEvent.Evt https://github.com/log2timeline/plaso/blob/master/test_data/SysEvent.Evt?raw=true
- if test -x 'synctestdata.sh'; then ./synctestdata.sh; fi
script:
- if test `uname -s` = 'Linux'; then export PATH=$(echo $PATH | tr ":" "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s/::/:/g"); fi
- ./runtests.sh
Expand Down
18 changes: 18 additions & 0 deletions synctestdata.sh
@@ -0,0 +1,18 @@
#!/bin/sh
# Script that synchronizes the local test data
#
# Version: 20161009

TEST_SET="public";
TEST_INPUT_DIRECTORY="tests/input";
TEST_FILES="SysEvent.Evt";

mkdir -p "${TEST_INPUT_DIRECTORY}/${TEST_SET}";

for TEST_FILE in ${TEST_FILES};
do
URL="https://github.com/log2timeline/plaso/blob/master/test_data/${TEST_FILE}?raw=true";

curl -L -o "${TEST_INPUT_DIRECTORY}/${TEST_SET}/${TEST_FILE}" ${URL};
done

3 changes: 2 additions & 1 deletion tests/evt_test_support.c
Expand Up @@ -26,9 +26,11 @@
#endif

#include "evt_test_libcerror.h"
#include "evt_test_libclocale.h"
#include "evt_test_libcstring.h"
#include "evt_test_libcsystem.h"
#include "evt_test_libevt.h"
#include "evt_test_libuna.h"
#include "evt_test_macros.h"
#include "evt_test_unused.h"

Expand Down Expand Up @@ -737,4 +739,3 @@ int main(
return( EXIT_FAILURE );
}


0 comments on commit a89a053

Please sign in to comment.