File: run-basic-check

package info (click to toggle)
drbl 5.7.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,984 kB
  • sloc: sh: 43,522; perl: 8,820; xml: 867; makefile: 131
file content (34 lines) | stat: -rwxr-xr-x 729 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash


echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
export LANG=en_US.UTF-8

set -e

test_uri_parse(){
  echo "URI parse test"
  /usr/bin/drbl-uriparse smb://jack:loverose@titanic.com:1911/to/new-york domain|grep titanic.com
}

test_grub_menu(){
  echo "create client's grub menu test"
  mkdir -p /tftpboot/nbi_img/grub/
  /usr/sbin/gen-grub-efi-nb-menu
  cat /tftpboot/nbi_img/grub/grub.cfg|grep menu
}

test_pxe_menu(){
  echo "create client's pxe menu test"
  mkdir -p /tftpboot/nbi_img/pxelinux.cfg/
  /usr/sbin/generate-pxe-menu
  cat /tftpboot/nbi_img/pxelinux.cfg/default|grep menu
}

test_drblsrv_offline_package_scan(){
  echo "drblsrv-offline package scan test"
  /sbin/drblsrv-offline -r
}
. shunit2