Skip to content

Commit a5563f8

Browse files
committed
extra: move locale back to top-level
Avoid extra/extra. Add basic test.
1 parent 5b7cd22 commit a5563f8

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

File renamed without changes.

tests/extra/locale.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ pkgs, devshell, runTest }:
2+
{
3+
# Basic test
4+
simple =
5+
let
6+
shell = devshell.mkShell {
7+
imports = [ ../../extra/locale.nix ];
8+
devshell.name = "locale-simple";
9+
};
10+
in
11+
runTest "simple" { } ''
12+
# Assume that LOCAL_ARCHIVE is not set before
13+
assert -z "$LOCALE_ARCHIVE"
14+
15+
# Load the devshell
16+
source ${shell}
17+
18+
# Sets LOCALE_ARCHIVE
19+
assert -n "$LOCALE_ARCHIVE"
20+
'';
21+
}

0 commit comments

Comments
 (0)