|
| 1 | +[H[2J |
| 2 | +unit-tests.sh: |
| 3 | + |
| 4 | +Test Setup |
| 5 | +Adding user `testuser3' ... |
| 6 | +Adding new group `testuser3' (1002) ... |
| 7 | +Adding new user `testuser3' (1002) with group `testuser3' ... |
| 8 | +Creating home directory `/home/testuser3' ... |
| 9 | +Copying files from `/etc/skel' ... |
| 10 | +testuser3 ALL=(ALL) NOPASSWD: ALL |
| 11 | +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBGTO0tsVejssuaYR5R3Y/i73SppJAhme1dH7W2c47d4gOqB4izP0+fRLfvbz/tnXFz4iOP/H6eCV05hqUhF+KYRxt9Y8tVMrpDZR2l75o6+xSbUOMu6xN+uVF0T9XzKcxmzTmnV7Na5up3QM3DoSRYX/EP3utr2+zAqpJIfKPLdA74w7g56oYWI9blpnpzxkEd3edVJOivUkpZ4JoenWManvIaSdMTJXMy3MtlQhva+j9CgguyVbUkdzK9KKEuah+pFZvaugtebsU+bllPTB0nlXGIJk98Ie9ZtxuY3nCKneB+KjKiXrAvXUPCI9mWkYS/1rggpFmu3HbXBnWSUdf localuser@machine.local |
| 12 | +Rules updated |
| 13 | +Rules updated (v6) |
| 14 | +Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup |
| 15 | +Setting up swapspace version 1, size = 2097148 KiB |
| 16 | +no label, UUID=08d44c74-226f-45cd-bbf5-38655c1548db |
| 17 | +vm.swappiness = 10 |
| 18 | +vm.vfs_cache_pressure = 50 |
| 19 | +vm.swappiness = 60 |
| 20 | +vm.vfs_cache_pressure = 100 |
| 21 | +America/New_York |
| 22 | + |
| 23 | +Current default time zone: 'America/New_York' |
| 24 | +Local time is now: Tue Nov 29 07:00:42 EST 2016. |
| 25 | +Universal Time is now: Tue Nov 29 12:00:42 UTC 2016. |
| 26 | + |
| 27 | +Etc/UTC |
| 28 | + |
| 29 | +Current default time zone: 'Etc/UTC' |
| 30 | +Local time is now: Tue Nov 29 12:00:43 UTC 2016. |
| 31 | +Universal Time is now: Tue Nov 29 12:00:43 UTC 2016. |
| 32 | + |
| 33 | +Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B] |
| 34 | +Hit http://archive.ubuntu.com precise Release.gpg |
| 35 | +Get:2 http://security.ubuntu.com precise-security Release [55.5 kB] |
| 36 | +Get:3 http://archive.ubuntu.com precise-updates Release.gpg [198 B] |
| 37 | +Hit http://archive.ubuntu.com precise-backports Release.gpg |
| 38 | +Hit http://archive.ubuntu.com precise Release |
| 39 | +Get:4 http://archive.ubuntu.com precise-updates Release [55.4 kB] |
| 40 | +Get:5 http://security.ubuntu.com precise-security/main Sources [146 kB] |
| 41 | +Get:6 http://security.ubuntu.com precise-security/universe Sources [53.7 kB] |
| 42 | +Hit http://archive.ubuntu.com precise-backports Release |
| 43 | +Get:7 http://security.ubuntu.com precise-security/main amd64 Packages [650 kB] |
| 44 | +Get:8 http://archive.ubuntu.com precise/main Sources [934 kB] |
| 45 | +Get:9 http://security.ubuntu.com precise-security/universe amd64 Packages [139 kB] |
| 46 | +Get:10 http://security.ubuntu.com precise-security/main i386 Packages [722 kB] |
| 47 | +Get:11 http://security.ubuntu.com precise-security/universe i386 Packages [147 kB] |
| 48 | +Get:12 http://archive.ubuntu.com precise/restricted Sources [5,470 B] |
| 49 | +Get:13 http://security.ubuntu.com precise-security/main TranslationIndex [208 B] |
| 50 | +Get:14 http://archive.ubuntu.com precise/universe Sources [5,019 kB] |
| 51 | +Get:15 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B] |
| 52 | +Get:16 http://security.ubuntu.com precise-security/main Translation-en [266 kB] |
| 53 | +Get:17 http://security.ubuntu.com precise-security/universe Translation-en [89.0 kB] |
| 54 | +Get:18 http://archive.ubuntu.com precise/multiverse Sources [155 kB] |
| 55 | +Hit http://archive.ubuntu.com precise/main amd64 Packages |
| 56 | +Hit http://archive.ubuntu.com precise/restricted amd64 Packages |
| 57 | +Hit http://archive.ubuntu.com precise/universe amd64 Packages |
| 58 | +Hit http://archive.ubuntu.com precise/multiverse amd64 Packages |
| 59 | +Hit http://archive.ubuntu.com precise/main i386 Packages |
| 60 | +Hit http://archive.ubuntu.com precise/restricted i386 Packages |
| 61 | +Hit http://archive.ubuntu.com precise/universe i386 Packages |
| 62 | +Hit http://archive.ubuntu.com precise/multiverse i386 Packages |
| 63 | +Hit http://archive.ubuntu.com precise/main TranslationIndex |
| 64 | +Hit http://archive.ubuntu.com precise/multiverse TranslationIndex |
| 65 | +Hit http://archive.ubuntu.com precise/restricted TranslationIndex |
| 66 | +Hit http://archive.ubuntu.com precise/universe TranslationIndex |
| 67 | +Get:19 http://archive.ubuntu.com precise-updates/main Sources [499 kB] |
| 68 | +Get:20 http://archive.ubuntu.com precise-updates/restricted Sources [8,840 B] |
| 69 | +Get:21 http://archive.ubuntu.com precise-updates/universe Sources [132 kB] |
| 70 | +Get:22 http://archive.ubuntu.com precise-updates/multiverse Sources [10.5 kB] |
| 71 | +Get:23 http://archive.ubuntu.com precise-updates/main amd64 Packages [1,032 kB] |
| 72 | +Get:24 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [15.4 kB] |
| 73 | +Get:25 http://archive.ubuntu.com precise-updates/universe amd64 Packages [283 kB] |
| 74 | +Get:26 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [17.1 kB] |
| 75 | +Get:27 http://archive.ubuntu.com precise-updates/main i386 Packages [1,103 kB] |
| 76 | +Get:28 http://archive.ubuntu.com precise-updates/restricted i386 Packages [15.4 kB] |
| 77 | +Get:29 http://archive.ubuntu.com precise-updates/universe i386 Packages [292 kB] |
| 78 | +Get:30 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [17.3 kB] |
| 79 | +Get:31 http://archive.ubuntu.com precise-updates/main TranslationIndex [208 B] |
| 80 | +Get:32 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [202 B] |
| 81 | +Get:33 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [202 B] |
| 82 | +Get:34 http://archive.ubuntu.com precise-updates/universe TranslationIndex [205 B] |
| 83 | +Get:35 http://archive.ubuntu.com precise-backports/main Sources [5,922 B] |
| 84 | +Get:36 http://archive.ubuntu.com precise-backports/restricted Sources [28 B] |
| 85 | +Get:37 http://archive.ubuntu.com precise-backports/universe Sources [44.2 kB] |
| 86 | +Get:38 http://archive.ubuntu.com precise-backports/multiverse Sources [5,750 B] |
| 87 | +Hit http://archive.ubuntu.com precise-backports/main amd64 Packages |
| 88 | +Hit http://archive.ubuntu.com precise-backports/restricted amd64 Packages |
| 89 | +Hit http://archive.ubuntu.com precise-backports/universe amd64 Packages |
| 90 | +Hit http://archive.ubuntu.com precise-backports/multiverse amd64 Packages |
| 91 | +Hit http://archive.ubuntu.com precise-backports/main i386 Packages |
| 92 | +Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages |
| 93 | +Hit http://archive.ubuntu.com precise-backports/universe i386 Packages |
| 94 | +Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages |
| 95 | +Hit http://archive.ubuntu.com precise-backports/main TranslationIndex |
| 96 | +Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex |
| 97 | +Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex |
| 98 | +Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex |
| 99 | +Hit http://archive.ubuntu.com precise/main Translation-en |
| 100 | +Hit http://archive.ubuntu.com precise/multiverse Translation-en |
| 101 | +Hit http://archive.ubuntu.com precise/restricted Translation-en |
| 102 | +Hit http://archive.ubuntu.com precise/universe Translation-en |
| 103 | +Get:39 http://archive.ubuntu.com precise-updates/main Translation-en [428 kB] |
| 104 | +Get:40 http://archive.ubuntu.com precise-updates/multiverse Translation-en [10.1 kB] |
| 105 | +Get:41 http://archive.ubuntu.com precise-updates/restricted Translation-en [3,682 B] |
| 106 | +Get:42 http://archive.ubuntu.com precise-updates/universe Translation-en [170 kB] |
| 107 | +Hit http://archive.ubuntu.com precise-backports/main Translation-en |
| 108 | +Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en |
| 109 | +Hit http://archive.ubuntu.com precise-backports/restricted Translation-en |
| 110 | +Hit http://archive.ubuntu.com precise-backports/universe Translation-en |
| 111 | +Fetched 12.5 MB in 18s (678 kB/s) |
| 112 | +Reading package lists... |
| 113 | +Reading package lists... |
| 114 | +Building dependency tree... |
| 115 | +Reading state information... |
| 116 | +The following packages were automatically installed and are no longer required: |
| 117 | + libxfixes3 libxcomposite1 xfonts-encodings x11-xkb-utils xserver-xorg-core |
| 118 | + xserver-common libgl1-mesa-dri xfonts-utils libxfont1 xfonts-base |
| 119 | + libfontenc1 libxdamage1 libxrandr2 libxkbfile1 libllvm3.0 |
| 120 | +Use 'apt-get autoremove' to remove them. |
| 121 | +The following extra packages will be installed: |
| 122 | + libopts25 |
| 123 | +Suggested packages: |
| 124 | + ntp-doc |
| 125 | +The following NEW packages will be installed: |
| 126 | + libopts25 ntp |
| 127 | +0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded. |
| 128 | +Need to get 676 kB of archives. |
| 129 | +After this operation, 1,714 kB of additional disk space will be used. |
| 130 | +Get:1 http://archive.ubuntu.com/ubuntu/ precise/main libopts25 amd64 1:5.12-0.1ubuntu1 [59.9 kB] |
| 131 | +Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main ntp amd64 1:4.2.6.p3+dfsg-1ubuntu3.11 [617 kB] |
| 132 | +Fetched 676 kB in 1s (406 kB/s) |
| 133 | +Selecting previously unselected package libopts25. |
| 134 | +(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 65970 files and directories currently installed.) |
| 135 | +Unpacking libopts25 (from .../libopts25_1%3a5.12-0.1ubuntu1_amd64.deb) ... |
| 136 | +Selecting previously unselected package ntp. |
| 137 | +Unpacking ntp (from .../ntp_1%3a4.2.6.p3+dfsg-1ubuntu3.11_amd64.deb) ... |
| 138 | +Processing triggers for man-db ... |
| 139 | +Processing triggers for ureadahead ... |
| 140 | +Setting up libopts25 (1:5.12-0.1ubuntu1) ... |
| 141 | +Setting up ntp (1:4.2.6.p3+dfsg-1ubuntu3.11) ... |
| 142 | + * Starting NTP server ntpd [252G [246G[ OK ] |
| 143 | +Processing triggers for libc-bin ... |
| 144 | +ldconfig deferred processing now taking place |
| 145 | +unit-tests.sh: line 88: timedatectl: command not found |
| 146 | +Line 88: testNTP: assertContains() failed. Expected "" to contain "NTP synchronized: yes".. |
| 147 | +Test Teardown |
| 148 | +Removing user `testuser3' from group `sudo' ... |
| 149 | +Done. |
| 150 | +Looking for files to backup/remove ... |
| 151 | +Removing files ... |
| 152 | +Removing user `testuser3' ... |
| 153 | +Warning: group `testuser3' has no more members. |
| 154 | +Done. |
| 155 | +Rule deleted |
| 156 | +Rule deleted (v6) |
| 157 | +Firewall stopped and disabled on system startup |
| 158 | +Reading package lists... |
| 159 | +Building dependency tree... |
| 160 | +Reading state information... |
| 161 | +The following packages will be REMOVED: |
| 162 | + libfontenc1* libgl1-mesa-dri* libllvm3.0* libopts25* libxcomposite1* |
| 163 | + libxdamage1* libxfixes3* libxfont1* libxkbfile1* libxrandr2* ntp* |
| 164 | + x11-xkb-utils* xfonts-base* xfonts-encodings* xfonts-utils* xserver-common* |
| 165 | + xserver-xorg-core* |
| 166 | +0 upgraded, 0 newly installed, 17 to remove and 4 not upgraded. |
| 167 | +After this operation, 57.0 MB disk space will be freed. |
| 168 | +(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 66015 files and directories currently installed.) |
| 169 | +Removing xserver-xorg-core ... |
| 170 | +Purging configuration files for xserver-xorg-core ... |
| 171 | +rm: cannot remove `/var/log/Xorg.*.log': No such file or directory |
| 172 | +rm: cannot remove `/var/log/Xorg.*.log.old': No such file or directory |
| 173 | +Removing xfonts-base ... |
| 174 | +Purging configuration files for xfonts-base ... |
| 175 | +warning: /usr/share/fonts/X11/misc does not exist or is not a directory |
| 176 | +warning: /usr/share/fonts/X11/misc does not exist or is not a directory |
| 177 | +Removing xfonts-utils ... |
| 178 | +Purging configuration files for xfonts-utils ... |
| 179 | +Removing libxfont1 ... |
| 180 | +Purging configuration files for libxfont1 ... |
| 181 | +Removing libfontenc1 ... |
| 182 | +Purging configuration files for libfontenc1 ... |
| 183 | +Removing libgl1-mesa-dri ... |
| 184 | +Removing libllvm3.0 ... |
| 185 | +Purging configuration files for libllvm3.0 ... |
| 186 | +Removing ntp ... |
| 187 | + * Stopping NTP server ntpd [252G [246G[ OK ] |
| 188 | +Purging configuration files for ntp ... |
| 189 | +Removing libopts25 ... |
| 190 | +Purging configuration files for libopts25 ... |
| 191 | +Removing libxcomposite1 ... |
| 192 | +Purging configuration files for libxcomposite1 ... |
| 193 | +Removing libxdamage1 ... |
| 194 | +Purging configuration files for libxdamage1 ... |
| 195 | +Removing libxfixes3 ... |
| 196 | +Purging configuration files for libxfixes3 ... |
| 197 | +Removing xserver-common ... |
| 198 | +Removing x11-xkb-utils ... |
| 199 | +Removing libxkbfile1 ... |
| 200 | +Purging configuration files for libxkbfile1 ... |
| 201 | +Removing libxrandr2 ... |
| 202 | +Purging configuration files for libxrandr2 ... |
| 203 | +Removing xfonts-encodings ... |
| 204 | +Processing triggers for man-db ... |
| 205 | +Processing triggers for fontconfig ... |
| 206 | +Processing triggers for libc-bin ... |
| 207 | +ldconfig deferred processing now taking place |
| 208 | +Processing triggers for ureadahead ... |
| 209 | + |
| 210 | + |
| 211 | +RESULTS: 12 tests passed. 1 tests failed. 13 tests total. |
| 212 | +Execution completed in 33 second(s)... |
| 213 | + |
| 214 | +Unit Tests failed. |
|
0 commit comments