mirror of
https://github.com/vgough/encfs.git
synced 2025-04-16 15:28:43 +02:00
add test target
This commit is contained in:
parent
f04381fe17
commit
12e8efb2cd
@ -3,4 +3,4 @@ script:
|
|||||||
- sh devmode
|
- sh devmode
|
||||||
- cd build
|
- cd build
|
||||||
- make
|
- make
|
||||||
- ./checkops
|
- make test
|
||||||
|
@ -158,3 +158,18 @@ if (GETTEXT_FOUND)
|
|||||||
gettext_process_po_files(${lang} ALL PO_FILES ${pofile})
|
gettext_process_po_files(${lang} ALL PO_FILES ${pofile})
|
||||||
endforeach()
|
endforeach()
|
||||||
endif (GETTEXT_FOUND)
|
endif (GETTEXT_FOUND)
|
||||||
|
|
||||||
|
# Tests
|
||||||
|
enable_testing()
|
||||||
|
add_test (NAME checkops
|
||||||
|
COMMAND checkops)
|
||||||
|
|
||||||
|
find_program (PERL_PROGRAM perl)
|
||||||
|
if (PERL_PROGRAM)
|
||||||
|
file(GLOB pl_test_files "tests/*.t.pl")
|
||||||
|
#add_test (NAME scriptedtests
|
||||||
|
# COMMAND ${PERL_PROGRAM} -I ${CMAKE_SOURCE_DIR}
|
||||||
|
# -MTest::Harness
|
||||||
|
# -e "$$Test::Harness::verbose=1; runtests @ARGV;"
|
||||||
|
# ${pl_test_files})
|
||||||
|
endif (PERL_PROGRAM)
|
||||||
|
@ -12,9 +12,6 @@ require("tests/common.pl");
|
|||||||
|
|
||||||
my $tempDir = $ENV{'TMPDIR'} || "/tmp";
|
my $tempDir = $ENV{'TMPDIR'} || "/tmp";
|
||||||
|
|
||||||
# run unit tests
|
|
||||||
ok( system("./encfs/test 2> /dev/null") == 0, "unit tests");
|
|
||||||
|
|
||||||
# test filesystem in standard config mode
|
# test filesystem in standard config mode
|
||||||
&runTests('standard');
|
&runTests('standard');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user