Skip to content
Snippets Groups Projects
Commit 49f05d11 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix some tests

parent 737c797e
No related branches found
No related tags found
No related merge requests found
Showing
with 2 additions and 12 deletions
......@@ -327,7 +327,7 @@ void TestAll(const Args& args) {
exit(EXIT_FAILURE);
}
consumer->SetTimeout(100);
consumer->SetTimeout(1000);
auto group_id = consumer->GenerateNewGroupId(&err);
if (args.datasets == "single") {
......
......@@ -41,4 +41,3 @@ $producer_bin localhost:8400 ${beamtime_id} 100 1000 4 0 100
echo "Start consumer in metadata only mode"
$consumer_bin ${proxy_address} ${receiver_folder} ${beamtime_id} 2 $token 2000 1 | tee out
grep "Processed 1000 file(s)" out
grep -i "Using connection type: No connection" out
......@@ -41,5 +41,4 @@ echo "Start consumer in metadata only mode"
$consumer_bin ${proxy_address} ${receiver_folder} ${beamtime_id} 2 $token 5000 1 1 | tee out
grep "Processed 100 dataset(s)" out
grep "with 500 file(s)" out
grep -i "Using connection type: No connection" out
......@@ -51,7 +51,6 @@ echo hello > /tmp/asapo/test_in/processed/test2/file1
echo "Start consumer in metadata only mode"
$consumer_bin ${proxy_address} ${receiver_folder} ${beamtime_id} 2 $token 1000 1 | tee /dev/stderr out
grep "Processed 3 file(s)" out
grep -i "Using connection type: No connection" out
test ! -f /tmp/asapo/test_in/processed/test1/file1
test ! -f /tmp/asapo/test_in/processed/test1/file2
......
......@@ -54,7 +54,6 @@ echo "Start consumer in metadata only mode"
$consumer_bin ${proxy_address} ${receiver_folder} ${beamtime_id} 2 $token 2000 1 1 | tee out
grep "Processed 1 dataset(s)" out
grep "with 3 file(s)" out
grep -i "Using connection type: No connection" out
test -f /tmp/asapo/test_in/processed/test1/file1
test -f /tmp/asapo/test_in/processed/test1/file2
......
......@@ -61,4 +61,3 @@ echo "Start consumer in metadata only mode"
$consumer_bin ${proxy_address} $network_type ${receiver_folder} ${beamtime_id} 2 $token 2000 1 1 | tee out
grep "Processed 2 dataset(s)" out
grep "with 4 file(s)" out
grep -i "Using connection type: No connection" out
......@@ -42,7 +42,6 @@ REM consumer
type out.txt
findstr /i /l /c:"Processed 2 dataset(s)" out.txt || goto :error
findstr /i /l /c:"with 4 file(s)" out.txt || goto :error
findstr /i /l /c:"Using connection type: No connection" out.txt || goto :error
goto :clean
......
......@@ -56,5 +56,4 @@ grep "Processed 3 file(s)" out.txt
grep "hello1" out.txt
grep "hello2" out.txt
grep "hello3" out.txt
grep -i "Using connection type: No connection" out.txt
......@@ -40,7 +40,6 @@ findstr /i /l /c:"Processed 3 file(s)" out.txt || goto :error
findstr /i /l /c:"hello1" out.txt || goto :error
findstr /i /l /c:"hello2" out.txt || goto :error
findstr /i /l /c:"hello3" out.txt || goto :error
findstr /i /l /c:"Using connection type: No connection" out.txt || goto :error
goto :clean
......
......@@ -40,4 +40,3 @@ $producer_bin localhost:8400 ${beamtime_id} 100 0 1 0 1000
echo "Start consumer in metadata only mode"
$consumer_bin ${proxy_address} ${receiver_folder} ${beamtime_id} 2 $token 1000 1 | tee out
grep "dummy_meta" out
grep -i "Using connection type: No connection" out
......@@ -3,12 +3,11 @@ set(TARGET_NAME full_chain_two_beamlines)
################################
# Testing
################################
add_script_test("${TARGET_NAME}-tcp" "$<TARGET_FILE:dummy-data-producer> $<TARGET_FILE:getnext> $<TARGET_PROPERTY:asapo,EXENAME> tcp" nomem)
prepare_asapo()
add_script_test("${TARGET_NAME}-tcp" "$<TARGET_FILE:dummy-data-producer> $<TARGET_FILE:getnext> $<TARGET_PROPERTY:asapo,EXENAME> tcp" nomem)
if (ENABLE_LIBFABRIC)
if (ENABLE_LIBFABRIC_LOCALHOST)
configure_file(${CMAKE_SOURCE_DIR}/tests/automatic/settings/receiver_fabric.json.tpl.lin.in receiver_fabric.json.tpl @ONLY)
add_script_test("${TARGET_NAME}-fabric" "$<TARGET_FILE:dummy-data-producer> $<TARGET_FILE:getnext> $<TARGET_PROPERTY:asapo,EXENAME> fabric" nomem)
else ()
message(WARNING "Disabled automated LibFabric of '${TARGET_NAME}-fabric' test because 'ENABLE_LIBFABRIC_LOCALHOST' is not enabled.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment