File: test.sh

package info (click to toggle)
packmol 1%3A21.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,504 kB
  • sloc: tcl: 7,504; f90: 5,290; fortran: 1,879; sh: 299; makefile: 167; python: 121; lisp: 101
file content (42 lines) | stat: -rwxr-xr-x 1,671 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#
echo "Starting to run test.sh script... "
# Julia executable path:
julia_exe=`which julia`
echo "Output of which_julia: $julia_exe"
# Raise error in case of failure
set -e
if [[ -z "$julia_exe" ]]; then
    echo "julia executable not found in path, setting to ~/.juliaup/bin/julia - this might be wrong."
    julia_exe=~/.juliaup/bin/julia
fi
echo "Julia executable: $julia_exe"
# Run the tests
echo "Running runtests.jl script."
$julia_exe runtests.jl ./input_files/water_box.inp \
                  ./input_files/ieee_signaling.inp \
                  ./input_files/mixture.inp \
                  ./input_files/mixture_pbc.inp \
                  ./input_files/toy_with_fixed.inp \
                  ./input_files/spherical.inp \
                  ./input_files/bilayer.inp \
                  ./input_files/solvprotein.inp \
                  ./input_files/water_box_pbc.inp \
                  ./input_files/water_box_pbc2.inp \
                  ./input_files/water_box_pbc_negative_coordinates.inp \
                  ./input_files/water_box_pbc_slab.inp \
                  ./input_files/water_box_pbc_outside_box.inp \
                  ./input_files/bilayer_pbc.inp \
                  ./input_files/solvprotein_pbc.inp \
                  ./input_files/spherical_pbc.inp \
                  ./input_files/only_one_fixed.inp

# check if output files are properly generated in a failed run
./test_failed.sh ./input_files/water_box_failed.inp packmol.log "FORCED" 
./test_failed.sh ./input_files/protein_outside_pbc_error.inp packmol.log "outside"

# Test connectivity
./test_connectivity.sh 

# Test command-line interface
./test_cli.sh ../packmol