File: test_config.sh

package info (click to toggle)
debci 3.13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,656 kB
  • sloc: ruby: 6,516; sh: 2,437; javascript: 100; makefile: 92; perl: 11
file content (16 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. $(dirname $0)/test_helper.sh

test_read_debci_conf() {
  echo "debci_foo=bar" > "${debci_config_dir}/debci.conf"
  assertEquals 'foo=bar' $(debci config foo)
}

test_read_conf_d() {
  mkdir -p "${debci_config_dir}/conf.d"
  echo "debci_foo=bar" > "${debci_config_dir}/conf.d/foo.conf"
  assertEquals 'foo=bar' $(debci config foo)
}

. shunit2