cloudflight
2023-12-26 5fa6947054206e2e781eadd4effdcdf52eda28c4
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
43
44
45
46
#! /bin/bash
 
#  app-config.sh - Generates nrtest app configuration file for test executable
#
#  Date Created: 3/19/2018
#
#  Author:       Michael E. Tryby
#                US EPA - ORD/NRMRL
#
#  Arguments:
#    1 - absolute path to test executable
#  NOT IMPLEMENTED YET
#    2 - test executable version number
#    3 - build description
#
 
unameOut="$(uname -s)"
case "${unameOut}" in
    Linux*)     ;&
    Darwin*)    abs_build_path=$1
                test_cmd="runepanet"
                ;;
 
    MINGW*)     ;&
    MSYS*)      # Remove leading '/c' from file path for nrtest
                abs_build_path="$( echo "$1" | sed -e 's#/c##' )"
                test_cmd="runepanet.exe"
                ;;
                
    *)          # Machine unknown
esac
 
version=""
build_description=""
 
cat<<EOF
{
    "name" : "epanet",
    "version" : "${version}",
    "description" : "${build_description}", 
    "setup_script" : "",
    "exe" : "${abs_build_path}/${test_cmd}"
}
EOF