diff options
Diffstat (limited to 'gnu/tests/base.scm')
| -rw-r--r-- | gnu/tests/base.scm | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm index 09fc91383df..0f31c152e0f 100644 --- a/gnu/tests/base.scm +++ b/gnu/tests/base.scm | |||
| @@ -178,6 +178,19 @@ test -f /etc/profile.d/test_profile_d.sh | |||
| 178 | test \"$PROFILE_D_OK\" = yes") | 178 | test \"$PROFILE_D_OK\" = yes") |
| 179 | marionette))) | 179 | marionette))) |
| 180 | 180 | ||
| 181 | (test-assert "/etc/bashrc.d is sourced" | ||
| 182 | (zero? (marionette-eval | ||
| 183 | '(system* "bash" | ||
| 184 | ;; Ensure Bash runs interactively. | ||
| 185 | "--init-file" | ||
| 186 | #$(plain-file "test_bashrc_d.sh" | ||
| 187 | "\ | ||
| 188 | . /etc/bashrc | ||
| 189 | set -e -x | ||
| 190 | test -f /etc/bashrc.d/test_bashrc_d.sh | ||
| 191 | test \"$BASHRC_D_OK\" = yes")) | ||
| 192 | marionette))) | ||
| 193 | |||
| 181 | (test-equal "special files" | 194 | (test-equal "special files" |
| 182 | '#$special-files | 195 | '#$special-files |
| 183 | (marionette-eval | 196 | (marionette-eval |
| @@ -585,15 +598,23 @@ functionality tests, using the given KERNEL.") | |||
| 585 | (operating-system | 598 | (operating-system |
| 586 | (inherit %simple-os) | 599 | (inherit %simple-os) |
| 587 | (kernel kernel) | 600 | (kernel kernel) |
| 588 | (services (cons (service | 601 | (services (cons* (service |
| 589 | etc-profile-d-service-type | 602 | etc-profile-d-service-type |
| 590 | (list (plain-file | 603 | (list (plain-file |
| 591 | "test_profile_d.sh" | 604 | "test_profile_d.sh" |
| 592 | "export PROFILE_D_OK=yes\n") | 605 | "export PROFILE_D_OK=yes\n") |
| 593 | (plain-file | 606 | (plain-file |
| 594 | "invalid-name" | 607 | "invalid-name" |
| 595 | "not a POSIX script -- ignore me"))) | 608 | "not a POSIX script -- ignore me"))) |
| 596 | %base-services))) | 609 | (service |
| 610 | etc-bashrc-d-service-type | ||
| 611 | (list (plain-file | ||
| 612 | "test_bashrc_d.sh" | ||
| 613 | "export BASHRC_D_OK=yes\n") | ||
| 614 | (plain-file | ||
| 615 | "invalid-name" | ||
| 616 | "not a Bash script -- ignore me"))) | ||
| 617 | %base-services))) | ||
| 597 | #:imported-modules '((gnu services herd) | 618 | #:imported-modules '((gnu services herd) |
| 598 | (guix combinators)))) | 619 | (guix combinators)))) |
| 599 | (vm (virtual-machine os))) | 620 | (vm (virtual-machine os))) |
