summaryrefslogtreecommitdiff
path: root/src/unittest
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittest')
-rw-r--r--src/unittest/bitvectest.cc2
-rw-r--r--src/unittest/circletest.cc2
-rw-r--r--src/unittest/cprintftest.cc2
-rwxr-xr-xsrc/unittest/genini.py2
-rw-r--r--src/unittest/initest.cc3
-rw-r--r--src/unittest/lru_test.cc3
-rw-r--r--src/unittest/nmtest.cc2
-rw-r--r--src/unittest/offtest.cc2
-rw-r--r--src/unittest/paramtest.cc2
-rw-r--r--src/unittest/rangetest.cc2
-rw-r--r--src/unittest/sized_test.cc3
-rw-r--r--src/unittest/stattest.cc16
-rw-r--r--src/unittest/strnumtest.cc2
-rw-r--r--src/unittest/symtest.cc2
-rw-r--r--src/unittest/tokentest.cc2
-rw-r--r--src/unittest/tracetest.cc2
16 files changed, 39 insertions, 10 deletions
diff --git a/src/unittest/bitvectest.cc b/src/unittest/bitvectest.cc
index 1b8c332f5..440a150a3 100644
--- a/src/unittest/bitvectest.cc
+++ b/src/unittest/bitvectest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <iostream.h>
diff --git a/src/unittest/circletest.cc b/src/unittest/circletest.cc
index bb15f8c64..f072cf044 100644
--- a/src/unittest/circletest.cc
+++ b/src/unittest/circletest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <fcntl.h>
diff --git a/src/unittest/cprintftest.cc b/src/unittest/cprintftest.cc
index 361f84028..9c3eb0cd6 100644
--- a/src/unittest/cprintftest.cc
+++ b/src/unittest/cprintftest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <iostream>
diff --git a/src/unittest/genini.py b/src/unittest/genini.py
index 2af81fe2b..a969a6ee4 100755
--- a/src/unittest/genini.py
+++ b/src/unittest/genini.py
@@ -24,6 +24,8 @@
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# Authors: Nathan Binkert
import getopt, os, os.path, sys
from os.path import join as joinpath, realpath
diff --git a/src/unittest/initest.cc b/src/unittest/initest.cc
index 0c5ac2343..8f53fce5c 100644
--- a/src/unittest/initest.cc
+++ b/src/unittest/initest.cc
@@ -24,6 +24,9 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
+ * Steve Reinhardt
*/
#include <iostream>
diff --git a/src/unittest/lru_test.cc b/src/unittest/lru_test.cc
index 2829163de..d10eb1dd0 100644
--- a/src/unittest/lru_test.cc
+++ b/src/unittest/lru_test.cc
@@ -24,6 +24,9 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Dave Greene
+ * Nathan Binkert
*/
#include <iostream>
diff --git a/src/unittest/nmtest.cc b/src/unittest/nmtest.cc
index e9c20d19d..b6b74e08d 100644
--- a/src/unittest/nmtest.cc
+++ b/src/unittest/nmtest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <iostream>
diff --git a/src/unittest/offtest.cc b/src/unittest/offtest.cc
index d3f035b73..ebfb2515c 100644
--- a/src/unittest/offtest.cc
+++ b/src/unittest/offtest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <sys/types.h>
diff --git a/src/unittest/paramtest.cc b/src/unittest/paramtest.cc
index cb31c49d5..e513ab981 100644
--- a/src/unittest/paramtest.cc
+++ b/src/unittest/paramtest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
//
diff --git a/src/unittest/rangetest.cc b/src/unittest/rangetest.cc
index 41d438f48..b7a68ab44 100644
--- a/src/unittest/rangetest.cc
+++ b/src/unittest/rangetest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <iostream>
diff --git a/src/unittest/sized_test.cc b/src/unittest/sized_test.cc
index 86cd13e5b..f1bf7528f 100644
--- a/src/unittest/sized_test.cc
+++ b/src/unittest/sized_test.cc
@@ -24,6 +24,9 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Dave Greene
+ * Nathan Binkert
*/
#include <iostream>
diff --git a/src/unittest/stattest.cc b/src/unittest/stattest.cc
index b944eff45..4e504fde9 100644
--- a/src/unittest/stattest.cc
+++ b/src/unittest/stattest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <iomanip>
@@ -48,10 +50,10 @@ Tick ticksPerSecond = ULL(2000000000);
Scalar<> s1;
Scalar<> s2;
Average<> s3;
-Scalar<MainBin> s4;
-Vector<MainBin> s5;
-Distribution<MainBin> s6;
-Vector<MainBin> s7;
+Scalar<> s4;
+Vector<> s5;
+Distribution<> s6;
+Vector<> s7;
AverageVector<> s8;
StandardDeviation<> s9;
AverageDeviation<> s10;
@@ -70,9 +72,6 @@ Value f5;
Formula f6;
Formula f7;
-MainBin bin1("bin1");
-MainBin bin2("bin2");
-
ostream *outputStream = &cout;
double
@@ -301,8 +300,6 @@ main(int argc, char *argv[])
check();
reset();
- bin1.activate();
-
s16[1][0] = 1;
s16[0][1] = 3;
s16[0][0] = 2;
@@ -493,7 +490,6 @@ main(int argc, char *argv[])
s6.sample(8);
s6.sample(9);
- bin2.activate();
s6.sample(10);
s6.sample(10);
s6.sample(10);
diff --git a/src/unittest/strnumtest.cc b/src/unittest/strnumtest.cc
index a80dd7c36..ea28e35df 100644
--- a/src/unittest/strnumtest.cc
+++ b/src/unittest/strnumtest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <iostream.h>
diff --git a/src/unittest/symtest.cc b/src/unittest/symtest.cc
index 5fba71736..f0142b923 100644
--- a/src/unittest/symtest.cc
+++ b/src/unittest/symtest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <iostream.h>
diff --git a/src/unittest/tokentest.cc b/src/unittest/tokentest.cc
index 7f27d58fe..128346b5b 100644
--- a/src/unittest/tokentest.cc
+++ b/src/unittest/tokentest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include <iostream>
diff --git a/src/unittest/tracetest.cc b/src/unittest/tracetest.cc
index 866b67d9b..b1343aac3 100644
--- a/src/unittest/tracetest.cc
+++ b/src/unittest/tracetest.cc
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
#include "sim/host.hh"