Make run scripts work
authorBrian Demsky <bdemsky@uci.edu>
Tue, 23 Jul 2019 00:10:14 +0000 (17:10 -0700)
committerBrian Demsky <bdemsky@uci.edu>
Tue, 23 Jul 2019 00:10:14 +0000 (17:10 -0700)
gdax-orderbook-hpp/run.sh
iris/run.sh
mabain/run.sh

index 788cab0..2f41b93 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/bash
+source ../run
 cd demo/
-LD_LIBRARY_PATH=./dependencies/libcds-2.3.2/build-release/bin ./demo
+LD_LIBRARY_PATH=./dependencies/libcds-2.3.2/build-release/bin:$LD_LIBRARY_PATH ./demo $@
 
 
index ff6f270..a746488 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
-./test_lfringbuffer
-./test2
+source ../run
+./test_lfringbuffer $@
+./test2 $@
 rm log.txt
 
 
index fe8bacd..a939db2 100755 (executable)
@@ -1,8 +1,9 @@
 #!/bin/bash
+source ../run
 cd examples
-LD_LIBRARY_PATH=~/mabain/lib/ ./mb_insert_test
-LD_LIBRARY_PATH=~/mabain/lib/ ./mb_longest_prefix_test
-LD_LIBRARY_PATH=~/mabain/lib/ ./mb_lookup_test
-LD_LIBRARY_PATH=~/mabain/lib/ ./mb_memory_only_test
+LD_LIBRARY_PATH=~/mabain/lib/:$LD_LIBRARY_PATH ./mb_insert_test $@
+LD_LIBRARY_PATH=~/mabain/lib/:$LD_LIBRARY_PATH ./mb_longest_prefix_test $@
+LD_LIBRARY_PATH=~/mabain/lib/:$LD_LIBRARY_PATH ./mb_lookup_test $@
+LD_LIBRARY_PATH=~/mabain/lib/:$LD_LIBRARY_PATH ./mb_memory_only_test $@