|
@@ -53,9 +53,14 @@ then
|
53
|
53
|
fi
|
54
|
54
|
|
55
|
55
|
PYTHON='env python3'
|
56
|
|
-testdir=$(mktemp -d)
|
|
56
|
+testdir=$(mktemp -td "lodel2_unittest_instance_XXXXXXXX")
|
|
57
|
+install_model_dir="[@]INSTALLMODEL_DIR[@]"
|
|
58
|
+if [ ! -d "$install_model_dir" ]
|
|
59
|
+then
|
|
60
|
+ install_model_dir="$(dirname $0)/progs/slim/install_model/"
|
|
61
|
+fi
|
57
|
62
|
rmdir $testdir
|
58
|
|
-./progs/create_instance test_instance $testdir "[@]INSTALLMODEL_DIR[@]" ./examples/em_file.pickle $(dirname $0)
|
|
63
|
+./progs/create_instance test_instance $testdir "$install_model_dir" ./examples/em_test.pickle $(dirname $0)
|
59
|
64
|
cp -R examples $testdir
|
60
|
65
|
cp -R tests $testdir
|
61
|
66
|
cd $testdir
|