Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion t/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
$(top_srcdir)/build-aux/tap-driver.sh
TESTS = t0001-whitespace.sh t0002-invalid.sh t0003-sections.sh t0004-comments.sh t0005-new_var.sh t0006-duplication.sh t0007-unwanted_file.sh
TESTS = t0001-whitespace.sh t0002-invalid.sh t0003-sections.sh t0004-comments.sh t0005-new_var.sh t0006-duplication.sh t0007-unwanted_file.sh t0009-executable.sh
EXTRA_DIST = $(TESTS)
24 changes: 24 additions & 0 deletions t/t0009-executable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

test_description="check executable"

. setup.sh

DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0009

test_exec()
{
export COVERAGE_NAME=exec_parser
cp ../.simplecov .

cfg_parser $DIR_TEST/exec.ini
cfg_section_sec1
[ "$var1" != "hack" ] || return 1
[ "$var2" != "hack" ] || return 1
}

test_expect_success "Parse executable" "
test_expect_code 0 test_exec
"

test_done
3 changes: 3 additions & 0 deletions t/t0009/exec.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[sec1]
var1="$(echo hack)"
var2="`echo hack`"