Files
.github
datadog
doc
examples
foreman
src
tests
jobs
Makefile.am
Setup.pm
api-test.nix
api-test.pl
evaluation-tests.pl
s3-backup-test.config
s3-backup-test.pl
set-up.pl
setup-notifications-jobset.pl
tear-down.pl
.gitignore
COPYING
INSTALL
Makefile.am
Procfile
README.md
bootstrap
configure.ac
default.nix
flake.lock
flake.nix
hydra-api.yaml
hydra-module.nix
shell.nix
version
hydra/tests/set-up.pl
Graham Christensen bd99052a6f tests: create database with the utf-8 locale
Otherwise tests may fail with wide character errors.
2021-01-21 17:08:05 -05:00

6 lines
259 B
Perl

use strict;
system("initdb -D postgres --locale C.UTF-8 ") == 0 or die;
system("pg_ctl -D postgres -o \"-F -p 6433 -h '' -k /tmp \" -w start") == 0 or die;
system("createdb -l C.UTF-8 -p 6433 hydra-test-suite") == 0 or die;
system("hydra-init") == 0 or die;